<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateChannelPeriodsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('channel_periods', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->integer('channel_id')->comment('频率ID');
            $table->integer('day_of_week')->comment('日期');
            $table->string('status')->default('')->comment('状态');
            $table->string('started_at')->default('')->comment('开始时间');
            $table->string('ended_at')->default('')->comment('结束时间');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('channel_periods');
    }
}
